//
//  QDGradeViewController.swift
//  QDMetroClient
//
//  Created by YueWen on 2019/2/27.
//  Copyright © 2019 YueWen. All rights reserved.
//

import UIKit

/// 我的积分界面
final class QDGradeViewController: NWViewController {

    /// 图片视图
    private let imageView = UIImageView()
    /// 显示积分页面升级中
    private let titleLabel = UILabel()
    /// 显示积分页面将全面升级，敬请期待！
    private let subtitleLabel = UILabel()
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
        
        titleLabel.textColor = QDColors.black
        titleLabel.font = Font.medium.font(size: 16)
        titleLabel.text = "积分页面升级中"
        
        subtitleLabel.textColor = QDColors.gray2
        subtitleLabel.font = Font.regular.font(size: 14)
        subtitleLabel.text = "积分页面将全面升级，敬请期待！"
        
        imageView.image = "grade_back".namedImage
        
        view.addSubview(imageView)
        view.addSubview(titleLabel)
        view.addSubview(subtitleLabel)
        
        imageView.snp.makeConstraints { (make) in
            make.width.height.equalTo(210)
            make.centerX.equalToSuperview()
            make.bottom.equalTo(titleLabel.snp.top)
        }
        
        titleLabel.snp.makeConstraints { (make) in
            make.centerX.equalToSuperview()
            make.height.equalTo(22)
            make.centerY.equalToSuperview().inset(40.5)
        }
        
        subtitleLabel.snp.makeConstraints { (make) in
            make.centerX.equalToSuperview()
            make.height.equalTo(20)
            make.top.equalTo(titleLabel.snp.bottom).offset(4)
        }
        
    }
    
    // MARK: NavigationBar
    override var nav_barShadowHidden: Bool { return true }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
